package org.gd.hellojaxb.privat24.ekb.models;

import org.gd.hellojaxb.adapters.DateAdaptersFactory;
import org.gd.hellojaxb.adapters.IntAdaptersFactory;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.Date;

@XmlRootElement(name = "DOC")
@XmlAccessorType(XmlAccessType.NONE)
public class EKBDoc {

    @XmlAttribute(name = "DId")
    @XmlJavaTypeAdapter(IntAdaptersFactory.Long.class)
    private Long id;
    @XmlAttribute(name = "DDS")
    @XmlJavaTypeAdapter(DateAdaptersFactory.DateFormat.class)
    private Date date;
    @XmlAttribute(name = "DNum")
    @XmlJavaTypeAdapter(IntAdaptersFactory.Long.class)
    private Long number;
    @XmlAttribute(name = "DSer")
    private String serial;
    @XmlAttribute(name = "DType")
    private String type;
    @XmlAttribute(name = "DSt")
    private String state;
    @XmlAttribute(name = "DCountry")
    private String country;
    @XmlAttribute(name = "DWho")
    private String place;

    public EKBDoc() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }
}
